import { FormSchema } from '/@/components/Table';
export const columns = [
  {
    title: '附件',
    dataIndex: 'attachment',
    width: 150,
  },
  {
    title: '附件图片列表',
    dataIndex: 'images',
    width: 300,
  },
  {
    title: '提示信息',
    dataIndex: 'message',
    width: 300,
  },
  
];
export const searchFormSchema: FormSchema[] = [
  {
    field: 'attachmentName',
    label: '附件名称',
    component: 'Input',
    colProps: { span: 6 },
  },
];
/**
 * 角色用户搜索form
 */
export const searchUserFormSchema: FormSchema[] = [
  {
    field: 'username',
    label: '用户账号',
    component: 'Input',
    colProps: { span: 12 },
    labelWidth: 74,
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'uploadFileMax',
    component: 'JUpload',
    helpMessage: '最多上传1个文件',
    label: '上传文件（1）',
    componentProps: { maxCount: 1 },
  },
];

export const formDescSchema = [
  {
    field: 'roleName',
    label: '角色名称',
  },
  {
    field: 'roleCode',
    label: '角色编码',
  },
  {
    label: '备注',
    field: 'description',
  },
];

export const modelFormSchema: FormSchema[] = [
  {
    label: 'APIkey',
    field: 'apiKey',
    component: 'Input',
    required: true,
    helpMessage: '请输入APIkey',
  },
];